using UnityEngine;

namespace Huluwa
{
    public enum GAME_MODE{
        singleMode = 0,
        networkMode
    }
    public sealed class GlobalConfig
    {
        private static volatile GlobalConfig instance;
        private static Object syncRootObject = new Object();
    
        public static GlobalConfig Instance
        {
            get
            {
                if (instance == null)
                {
                    lock (syncRootObject)
                    {
                        if (instance == null)
                        {
                            instance = new GlobalConfig();
                        }
                    }
                }
                return instance;
            }
        }
        /// <summary>
        /// 游戏模式
        /// </summary>
        public GAME_MODE mode;
        public GlobalConfig(){
            mode = GAME_MODE.singleMode;
        }
        /// <summary>
        /// 生成弹幕的速度
        /// </summary>
        public float generateDanmakuSpeed = 0.5f;
        public float AIGenerateDanmakuSpeed = 3f;
        public float DanmakuMoveSpeed = 5f;

        public string gameOverPrefab ="GameUI/GameOver";
        public string danmaku_0 ="Prefabs/Danmaku_0";
        public string danmaku_N ="Prefabs/Danmaku_N";
        public string danmaku_P ="Prefabs/Danmaku_P";

        public int danmakuCount =0;
    }
}